from TV import TV

def main():
    tv1 = TV()
    tv1.turnOn()
    tv1.setChannel(30)
    tv1.setVolumeLevel(3)

    tv2 = TV()
    tv2.turnOn()
    tv2.channelUp()
    tv2.channelUp()
    tv2.volumeUp()

    print("tv1频道为：",tv1.getChannel(),"，声音：",tv1.getVolumeLevel())
    print("tv2频道为：",tv2.getChannel(),"，声音：",tv2.getVolumeLevel())

    print(dir(TV))

main()
